package IO.stream;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class ByteStream {
    public static void main(String[] args) throws IOException {
        byte[] buf = new byte[4096];
        InputStream in = System.in;
        OutputStream out = System.out;
        int len = in.read(buf);
        while (len != -1) {
            out.write(buf, 0, len);
            len = in.read(buf);
        }
    }
}
